$(function(){
    $('#fullpage').fullpage({
        navigation:true,
        // navigationPosition:'left'
        loopBottom:true,
        scrollingSpeed:1200,
        afterLoad:function(anchorLink,index){
            // if(index==1){
            //     $(".section0").addClass('comein');
            // }
        },
        onLeave: function(index, nextIndex, direction){
            if(index==1&&nextIndex==2){
                $(".section0").removeClass('comein');
            }
        }
    });

    $('.start').click(function () { 
        $.fn.fullpage.moveTo(2);       
    });
    $('#focus').click(function(){
        $(".section0").addClass('comein');
        $('.video').append(' <video src="upload/wuhan.mp4"  width="100%" muted autoplay > Your browser does not support the video tag. </video>');
        setTimeout(function(){
            $.fn.fullpage.moveTo(2); 
        },10500)
    })



});